const express = require('express');  
const router = express.Router();  
const { Category } = require('../../models'); // 确保正确路径  
const bcrypt = require('bcryptjs');  
const jwt = require('jsonwebtoken'); // 用于生成 JSON Web Token  

// 分类接口  
router.get('/', async (req, res) => {  

const categoryList = await Category.findAll()
console.log(categoryList)
res.json({
    message: '查询分类列表成功',
    result:categoryList   
})
});  

module.exports = router;  